package com.fortune.dao;

import com.fortune.dto.in.paymentMgt.DistributorPaymentAddDto;
import com.fortune.dto.in.paymentMgt.DistributorPaymentEditDto;
import com.fortune.dto.in.paymentMgt.DistributorPaymentListDto;
import com.fortune.vo.paymentMgt.DistributorPayment;
import com.fortune.vo.paymentMgt.DistributorPaymentDetail;
import com.fortune.vo.paymentMgt.OutPay;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2018/5/29 0029.
 */
public interface PaymentMgtDao {

    List<DistributorPayment> findDistributorPaymentList(@Param("dto")DistributorPaymentListDto dto,@Param("mid")String mid,@Param("did")String did);

    int findDistributorPaymentListCount(@Param("dto")DistributorPaymentListDto dto,@Param("mid")String mid,@Param("did")String did);

    DistributorPaymentDetail findDetail(@Param("mid")String mid,@Param("did")String did,@Param("paymentId")String paymentId);

    List<OutPay> findOutPay(@Param("mid")String mid,@Param("did")String did,@Param("id")String id);

    int add(@Param("addDto")DistributorPaymentAddDto addDto,@Param("mid")String mid,@Param("did")String did,@Param("id")String id);

    int updateOutPay(@Param("mid")String mid,@Param("did")String did,@Param("id")String id,@Param("payTypeId")String payTypeId);

    int delete(@Param("editDto")DistributorPaymentEditDto editDto,@Param("mid")String mid,@Param("did")String did);

    int updateAdd(@Param("editDto")DistributorPaymentEditDto editDto,@Param("mid")String mid,@Param("did")String did,@Param("id")String id);

    int deletePayment(@Param("mid")String mid,@Param("did")String did,@Param("id")String paymentId);

}
